package com.tanhua.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SoulVo implements Serializable {
    private String id;
    private String name;
    private String cover;
    private String level;
    private Integer star;
    private List questions;
    private Integer isLock;
    private String  reportId;
    public Integer getLevelNum(){
        if ("初级".equals(this.level)){
            return 1;
        }else if ("中级".equals(this.level)){
            return 2;
        }else {
            return 3;
        }
    }
}
